home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.orig.lzh / expire / mkadir < prev    next >
Text File  |  1989-06-27  |  477b  |  22 lines

  1. #! /bin/sh
  2. # make directories for expire archiving
  3. # $1 is overall archive dir, remaining args are successively deeper
  4. # subdirectories under $1 (e.g. comp comp/lang comp/lang/c) (which may
  5. # or may not already exist -- expire doesn't know or care).  Note, last
  6. # argument therefore is slashed newsgroup name.
  7.  
  8. case $# in
  9. 0|1)    echo "Usage: $0 archdir subdir ..." >&2 ; exit 2 ;;
  10. esac
  11.  
  12. cd $1
  13. shift
  14.  
  15. for d
  16. do
  17.     if test ! -d "$d"
  18.     then
  19.         mkdir "$d" >/dev/null 2>/dev/null
  20.     fi
  21. done
  22.